package com.gxa.mall.service;

import com.gxa.mall.dao.EmployeeDao;
import com.gxa.mall.model.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeService {
    @Autowired
    EmployeeDao employeeDao;
    public List<Employee> toseekemployee() {
       return employeeDao.toseekemployee();
    }

    public List<Employee> tolikeseek(String text) {
        return employeeDao.tolikeseek(text);
    }

    public void addemployee(Employee employee) {
        employeeDao.addemployee(employee);
    }

    /**
     * 根据id查询员工信息
     * @param id
     * @return
     */
    public Employee toupdata(Integer id) {
        return employeeDao.toupdata(id);
    }

    public void saveemployee(Employee employee) {
        employeeDao.saveemployee(employee);
    }

    public void toremove(Integer id) {
        employeeDao.toremove(id);
    }

    public Integer tosumem() {
        return employeeDao.tosumem();
    }

    public Integer tosumemday() {
        return employeeDao.tosumemday();
    }

    public Integer getdrugtpyeList1() {
        return employeeDao.getdrugtpyeList1();
    }

    public Integer getdrugtpyeList2() {
        return employeeDao.getdrugtpyeList2();
    }
    public Integer getdrugtpyeList3() {
        return employeeDao.getdrugtpyeList3();
    }
    public Integer getdrugtpyeList4() {
        return employeeDao.getdrugtpyeList4();
    }
}
